import json
import socket

request = {
    "id": 0,
    "params": ["fadewalk"],
    "method": "HelloService.Hello"
}

# client = socket.create_connection(("localhost", 1234))
# client.sendall(json.dumps(request).encode())
# 
# rsp = client.recv(1024)
# rsp = json.loads(rsp.decode())
# 
# print(rsp["result"])


import requests 
rsp = requests.post("http://localhost:1234/jsonrpc",json=request)

print(rsp.text)